package com.udata.server.dao;

import com.google.appengine.api.datastore.Key;
import com.udata.server.dao.impl.UserDaoImpl;
import com.udata.server.dao.impl.UserProfileDaoImpl;
import com.udata.shared.exception.OperationException;
import com.udata.shared.model.UserB;
import com.udata.shared.model.UserProfileB;

public abstract class UserProfileDao {
	private static UserProfileDao instance = null;

	public static UserProfileDao getinstance() {
		if (instance == null) {
			instance = new UserProfileDaoImpl();
		}
		return instance;
	}

	public abstract UserProfileB saveUserProfile(UserProfileB userProfile)
			throws OperationException;

	public abstract UserProfileB getUserProfile(Key key)
			throws OperationException;
}
